<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Primus</title>
	
	<link type="text/css" rel="stylesheet" href="/spring-GOP/css/common.css">
	<link type="text/css" rel="stylesheet" href="/spring-GOP/css/style.css">
	<link type="text/css" rel="stylesheet" href="/spring-GOP/css/notice/style_80.css">
	<link type="text/css" rel="stylesheet" href="/spring-GOP/css/notice/style_8030.css">
	
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.js"></script>
	<script type="text/javascript" src="/spring-GOP/js/common.js"></script>
	<script type="text/javascript">
		function onClick() {
			var movie_title = $("#movie_title").val();
			var movie_synopsis = $("#movie_synopsis").val();
			var movie_grade = $("#movie_grade").val();
			var movie_director = $("#movie_director").val();
			var movie_country = $("#movie_country").val();
			var movie_actor = $("#movie_actor").val();
			var movie_releasedate = $("#movie_releasedate").val();
			var movie_viewtime = $("#movie_viewtime").val();
			var movie_homepage = $("#movie_homepage").val();
			var movie_banner = $("#movie_banner").val();
			var movie_genre = $("#movie_genre").val();
			var movie_price = $("#movie_price").val();
			
			if (movie_title == "") {
				alert("영화 제목을 입력해주세요.");
				$("#movie_title").focus();
				return;
			} else if(movie_synopsis == "") {
				alert("영화 내용을 입력해주세요.");
				$("#movie_synopsis").focus();
				return;
			} else if(movie_grade == "") {
				alert("영화 등급을 입력해주세요.");
				$("#movie_grade").focus();
				return;
			} else if(movie_genre == "") {
				alert("영화 장르를 입력해주세요.");
				$("#movie_genre").focus();
				return;
			} else if(movie_director == "") {
				alert("영화 감독을 입력해주세요.");
				$("#movie_director").focus();
				return;
			} else if(movie_country == "") {
				alert("제작 국가를 입력해주세요.");
				$("#movie_country").focus();
				return;
			} else if(movie_actor == "") {
				alert("출연진을 입력해주세요.");
				$("#movie_actor").focus();
				return;
			} else if(movie_releasedate == "") {
				alert("개봉 날짜 입력해주세요.");
				$("#movie_releasedate").focus();
				return;
			} else if(movie_viewtime == "") {
				alert("상영 시간을 입력해주세요.");
				$("#movie_viewtime").focus();
				return;
			} else if(movie_homepage == "") {
				alert("홈페이지를 입력해주세요.");
				$("#movie_homepage").focus();
				return;
			} else if(movie_banner == "") {
				alert("배너 여부를 입력해주세요.");
				$("#movie_banner").focus();
				return;
			} else if(movie_price == "") {
				alert("영화 가격을 입력해주세요.");
				$("#movie_price").focus();
				return;
			}
			
			if(confirm("계속 진행하시겠습니까?")) {
				document.location="/spring-GOP/movie/still";
			}
		}
	</script>
</head>
<body>
	<form  method="post" name="writeForm">
		<div id="container">
			<div id="content">
				<!-- <div> floating - 메인인 경우</div> -->
				<div id="main-shortCut">
					<div class="sub-main-section">
						<!-- 컨텐츠 작성 -->
						<div class="page-type3">
							<h2>
								<p>Primus Movies</p>
								Primus <span>영화 추가하기</span>
							</h2>
						</div>
						<div class="listTab mainTab">
							<ul style="height: 890px;">
								<li>
									<div class="">
										<ul>
											<li>
												<ul class="ul-tab sub-tab tab-content" style="display: block;">
													<li class="tab-cont tab-ac">
														<table width="100%" class="inquiry-table">
															<tbody>
																<tr>
																	<th><label>영화 제목</label></th>
																	<td>
																		<div class="input-box">
																			<input class="input-box inquiry2" id="movie_title" name="movie_title" type="text" value="">
																		</div>
																	</td>
																</tr>
																<tr class="inquiry-con inquiry-con2">
																	<th><label>영화 내용</label></th>
																	<td>
																		<p>html태그, 프로그램 소스 및 특수문자(~!\#$%^&amp;*\()\=+_&lt;&gt; 등)입력시 글이 게시되지 않습니다.</p>
																		<textarea id="movie_synopsis" name="movie_synopsis"></textarea>
																	</td>
																</tr>
																<tr>
																	<th><label>영화 등급</label></th>
																	<td>
																		<input class="input-box inquiry2" id="movie_grade" name="movie_grade" type="text" value="">&nbsp;&nbsp;&nbsp;숫자만 입력하세요. ex> 12, 15, 0
																	</td>
																</tr>
																<tr>
																	<th><label>영화 장르</label></th>
																	<td>
																		<input class="input-box inquiry2" id="movie_genre" name="movie_genre" type="text" value="">
																	</td>
																</tr>
																<tr>
																	<th><label>영화 감독</label></th>
																	<td>
																		<input class="input-box inquiry2" id="movie_director" name="movie_director" type="text" value="">
																	</td>
																</tr>
																<tr>
																	<th><label>제작 국가</label></th>
																	<td>
																		<input class="input-box inquiry2" id="movie_country" name="movie_country" type="text" value="">
																	</td>
																</tr>
																<tr>
																	<th><label>출연진</label></th>
																	<td>
																		<input class="input-box inquiry2" id="movie_actor" name="movie_actor" type="text" value="">
																	</td>
																</tr>
																<tr>
																	<th><label>개봉날짜</label></th>
																	<td>
																		<input class="input-box inquiry2" id="movie_releasedate" name="movie_releasedate" type="text" value="">
																	</td>
																</tr>
																<tr>
																	<th><label>상영 시간</label></th>
																	<td>
																		<input class="input-box inquiry2" id="movie_viewtime" name="movie_viewtime" type="text" value="">
																	</td>
																</tr>
																<tr>
																	<th><label>홈페이지</label></th>
																	<td>
																		<input class="input-box inquiry2" id="movie_homepage" name="movie_homepage" type="text" value="">
																	</td>
																</tr>
																<tr>
																	<th><label>배너 여부</label></th>
																	<td>
																		<input class="input-box inquiry2" id="movie_banner" name="movie_banner" type="text" value="">&nbsp;&nbsp;&nbsp;(true, false)
																	</td>
																</tr>
																<tr>
																	<th><label>영화 가격</label></th>
																	<td>
																		<input class="input-box inquiry2" id="movie_price" name="movie_price" type="text" value="">
																	</td>
																</tr>
															</tbody>
														</table>
														<div class="inquiry-btn4">
															<span>
																<a href="list" class="button h29 w70 white"><b>취소</b></a>
															</span>
															<span>
																<a href=# onclick="onClick();" class="button h29 w120 orange"><b>계속하기</b></a>
															</span>
														</div>
													</li>
													<!-- tab-cont -->
												</ul>
											</li>
										</ul>
									</div>
								</li>
							</ul>
						</div>
						<!--//listTab mainTab-->

					</div>
				</div>
			</div>
		</div>
	</form>
</body>
</html>